#ifndef MAINFORM_H
#define MAINFORM_H

#include "SysAssist.h"
#include <QMainWindow>
#include <SysSeatInfoDialog.h>
#include <SysUpAdminDialog.h>
#include <QLineEdit>
#include <QPushButton>
#include <QDialog>
#include <QSqlQueryModel>
#include <QPaintEvent>
namespace Ui {
class MainForm;
}

class MainForm : public QMainWindow
{
        Q_OBJECT

    public:
        explicit MainForm(QWidget *parent = nullptr);
        ~MainForm();

    void TableRefresh();

signals:
    /*
     * 1.信号必须有signals声明
     * 2.信号函数没有返回值，但可以有参数
     * 3.信号就会函数的声明，只需声明，无需定义
     * 4.使用：emit mysignal();
     *
    */

private slots:
//    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void SysAdmin();

    void on_Btn102Info_clicked();

    void on_Btn108Info_clicked();

    void on_Btn601info_clicked();

    void on_BtnStuReg_clicked();

    void on_BtnAddAdmin_clicked();

    void on_pushButton_8_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_7_clicked();

    void on_BtnQuery_clicked();

    void on_BtnDelete_clicked();

    void DeleteReg();

private:
        Ui::MainForm *ui;
        QStringList TableHeader;//tableview表头
        SysUpAdminDialog *UpDialog;
        QLineEdit *lineEdit;
        QPushButton *Btn;
        QDialog *dialog;
        QSqlQueryModel *query;
        void paintEvent(QPaintEvent *event);
};

#endif // MAINFORM_H
